forked from zephyrproject-rtos/zephyr
-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pr1 test #2
Open
ghu0510
wants to merge
9
commits into
main
Choose a base branch
from
pr1_test
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This API introduced a new sensing subsystem, which is a high level sensor framework inside the OS user space service layer. It's a framework focus on sensor fusion, clients arbitration, sampling, timing, scheduling and sensor based power management. It's key concepts including physical sensor and virtual sensor objects, and a scheduling framework reflects sensor objects' reporting relationship. Physical sensors not depends on any other sensor objects for input, and will directly interact with existing zephyr sensor device drivers. Virtual sensors rely on other sensor objects (physical or virtual) as report inputs. The sensing subsystem relies on existing zephyr sensor device APIs or V2 zephyr sensor device APIs (zephyrproject-rtos#44098). So it can leverage current existing zephyr sensor device drivers (100+). And it's configurable, so, for some low cost IoT devices, may not need an advanced sensor framework, but just need access some simple sensor devices,can not configure and build this sensor subsystem, but just use the exiting zephyr sensor device APIs to save memory resources. Since the sensing subsystem is separated from device driver layer or kernel space and could support various customizations and sensor algorithms in user space with virtual sensor concepts. The existing sensor device driver can focus on low layer device side works, can keep simple as much as possible, just provide device HW abstraction and operations etc. This is very good for system stability. The sensing subsystem is decoupled with any sensor expose/transfer protocols, the target is to support various up-layer frameworks and Applications with different sensor expose/transfer protocols, such as CHRE, HID sensors Applications, MQTT sensor Applications according different products requirements. Or even support multiple Applications with different up-layer sensor protocols at the same time with it's multiple clients support design. For example can support CHRE and other normal zephyr sensor application (can use HID etc) at the same time. Signed-off-by: Hebo Hu <hebo.hu@intel.com> Signed-off-by: Guangfu Hu <guangfu.hu@intel.com>
Add documents for sensing subsystem. Signed-off-by: Hebo Hu <hebo.hu@intel.com>
Add Sensing Subsystem skeleton. Signed-off-by: Guangfu Hu <guangfu.hu@intel.com> Signed-off-by: Zhang Lixu <lixu.zhang@intel.com>
Add the sensor phy_3d_sensor skeleton in Sensing Subsystem. Signed-off-by: Zhang Lixu <lixu.zhang@intel.com>
Implement sensing_init(): 1) create sensors from device tree 2) sequence sensors following node dependency ordering rule generated by Zephyr DTS 3) initial each sensor, includes: a) creating sensor connection between reporter and client, b) calling sensor init callback, c) setting sensor state Implement sensing_open_sensor(): 1) malloc connection from reporter to application 2) bind connection Implement sensing_close_sensr(): 1) unbind connection 2) free connection from reporter to application Implement sensing_set_config(): 1) call set_interval 2) cann set_sensitivity Implement sensing_get_config(): 1) call get_interval 2) call get_sensitivity Signed-off-by: Guangfu Hu <guangfu.hu@intel.com>
Add a simple sensing subsystem application. Signed-off-by: Guangfu Hu <guangfu.hu@intel.com>
Add lixuzha, ghu0510, qianruh as maintainer and collaborators for the Sensing Subsystem. Signed-off-by: Zhang Lixu <lixu.zhang@intel.com>
Add lixuzha, ghu0510, qianruh for the Sensor Subsystem. Signed-off-by: Zhang Lixu <lixu.zhang@intel.com>
Signed-off-by: Guangfu Hu <guangfu.hu@intel.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.